package com.woniu.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_user_course")
public class TUserCourse implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_course_id", type = IdType.AUTO)
    private Integer userCourseId;

    /**
     *  1.团课 2.私课
     */
    @TableField("course_variety")
    private Integer courseVariety;

    @TableField("gym_num")
    private String gymNum;

    @TableField("user_id")
    private Integer userId;

    @TableField("coach_id")
    private Integer coachId;

    @TableField("course_id")
    private Integer courseId;

    @TableField("course_number")
    private Integer courseNumber;

    /**
     * 单位：月
     */
    @TableField("course_endate")
    private String courseEndate;

    /**
     * 0 失效 1 正常
     */
    @TableField("course_state")
    private Integer courseState;

    @TableField("rest_number")
    private Integer restNumber;

    @TableField("all_number")
    private Integer allNumber;

    /**
     * 当前的日期
     */
    @TableField("relevancy_date")
    private LocalDateTime relevancyDate;


}
